# 默认目标
all: plot doc

# 伪目标：clean
.PHONY: clean

# 目标：plot 和 doc
plot: $(wildcard *.py)
	@python $^

doc: $(wildcard *.tex)
	@xelatex $^
	@xelatex $^

# 理论作业就不清理pdf和png啦
clean:
	rm -f *.aux *.log *.out *.gz